import http from '../utils/http'

export const reqLogin = (code) => {
  return http.get(`/weixin/wxLogin/${code}`)
}

export const reqUserInfo = () => {
  return http.get('/weixin/getuserInfo')
}

export const postFile = (filePath, name) => {
  return http.upload('/fileUpload', filePath, name)
}

export const postUserInfo = (userInfo) => {
  return http.post('/weixin/updateUser', userInfo)
}
